package com.airlines.crewassignment.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author xxxx
 * @date 2018年3月31日 
 * @description
 */
@Component
public class LinkLineConstant {
	public static final String DI_D = "D"; //国内航线
	public static final String DI_I = "I"; //国际航线
	
	public static final String DI_D_NAME = "国内"; //国内航线
	public static final String DI_I_NAME = "国际"; //国际航线
	
	public static final String CONFIRM_FLAG_NAME_Y="确认";
	public static final String CONFIRM_FLAG_NAME_N="未确认";
	
	public static final int DUTY_DURATION_ADD_START = 90; //飞行执勤期比飞行时间多的开始偏移的分钟书
	public static final int DUTY_DURATION_ADD_END = 20; //飞行执勤期比飞行时间多的开始偏移的分钟书
	public static final int DUTY_DURATION_ADD = DUTY_DURATION_ADD_START+DUTY_DURATION_ADD_END; //飞行执勤期比飞行时间多的偏移量
	/**
	 * 飞行连线自动同步到客舱保卫连线
	 */
	public static boolean  LINKLINE_SYNCHRO_F_TO_CA;
	
	@Value("${com.airlines.linkLineSynchroFtoCA}")
	public void linkLineSynchroFtoCA(boolean value){
		LINKLINE_SYNCHRO_F_TO_CA = value;
	}
	
	/**
	 * 允许修改今天往后几天的连线或者排班,一般为1天
	 */
	public static int  ABLE_CHANGE_DAY_DIFF;
	@Value("${com.airlines.linkLineAbleChangeDayDiff}")
	public void linkLineAbleChangeDayDiff(int value){
		ABLE_CHANGE_DAY_DIFF = value;
	}
	
	
}
